using System;
using System.Web;
using System.Collections;
using System.Configuration;
using System.Collections.Generic;
using System.Web.Services;
using System.Web.Services.Protocols;

using Com.Grubbland.Data.Objects;
using Com.Grubbland.Data.Access;


/// <summary>
/// Summary description for ActivityService
/// </summary>
[WebService(Namespace = "http://eelms.grubbland.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class ActivityService : System.Web.Services.WebService
{

    private string cs = ConfigurationManager.ConnectionStrings["etConnStr"].ConnectionString;
    private ActivityServiceImpl svc;

    public ActivityService()
    {
        svc = new ActivityServiceImpl();
        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
    }

    [WebMethod]
    public string HelloWorld()
    {
        return "Hello World";
    }
    [WebMethod]
    public string VarLoader(Activity a, Media m, String s, int i, Channel c)
    {
        return "Hello World";
    }

    [WebMethod]
    public Channel GetChannel(string advId, int seqTypeId, bool withActivities)
    {
        return svc.GetChannel(advId, seqTypeId, withActivities);
    }

    [WebMethod]
    public Activity GetActivity(string activityId)
    {
        return svc.GetActivity(activityId);
    }

    [WebMethod]
    public Activity GetActivityItem(string activityId)
    {
        return svc.GetActivityItem(activityId);
    }

    [WebMethod]
    public List<Activity> SearchActivityItems(Activity m)
    {
        return svc.SearchActivityItems(m);
    }

    [WebMethod]
    public List<Activity> GetLinkedItems(string activityId, int mediaSubTypeId)
    {
        return svc.GetLinkedItems(activityId, mediaSubTypeId);//.ToArray();
    }
}

